import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getMember = {
  memberList(params) {
    return axios.post(`${base.bd}/admin/member/lists`, qs.stringify(params));
  },
  setMemBerConfig(params) {
    return axios.post(`${base.bd}/admin/member/saveedit`, qs.stringify(params));
  },
  findMemberConfig(params) {
    return axios.post(`${base.bd}/admin/member/find`, qs.stringify(params));
  },
  addcustomMemberTool(params){
    return axios.post(`${base.bd}/admin/member/add_tool`, qs.stringify(params));
  },
  getCustomMemberToolList(params){
    return axios.post(`${base.bd}/admin/member/lists_tool`, qs.stringify(params));
  },
  editCustomMemberTool(params){
    return axios.post(`${base.bd}/admin/member/edit_tool`, qs.stringify(params));
  },
  delCustomMemberTool(params){
    return axios.post(`${base.bd}/admin/member/del_tool`, qs.stringify(params));
  },
  getDataV(params){
    return axios.post(`${base.bd}/admin/statistics/index`, qs.stringify(params));
  }
};
export default getMember;
